package com.sihan.framework.etm.mapper.business;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.framework.mybatis.mapper.BaseMapper;
import com.sihan.framework.etm.dto.business.ToolBorrowReturnRecordDTO;
import com.sihan.framework.etm.dto.business.ToolPurchaseDTO;
import com.sihan.framework.etm.entity.business.PurchasePlanMaster;
import com.sihan.framework.etm.vo.CommonQueryResultVO;
import com.sihan.framework.etm.vo.business.PurchasePlanDetailVO;
import com.sihan.framework.etm.vo.business.PurchasePlanMasterVO;
import com.sihan.framework.etm.vo.business.ToolInWarehouseStandingBookVO;

@Mapper
public interface PurchasePlanMasterMapper extends BaseMapper<PurchasePlanMaster, String>{

	List<PurchasePlanMasterVO> selectPage(@Param("param") ToolPurchaseDTO dto);
	
	List<PurchasePlanDetailVO> selectPlanDetailByPlanId(@Param("param") ToolPurchaseDTO dto);
	
	List<PurchasePlanDetailVO> selectNeedPurchaseToolQuatity();
	
	CommonQueryResultVO selectUserBelongOrg(@Param("userId") String userId);
	
	List<ToolInWarehouseStandingBookVO> warehouseStandingBook(@Param("param") ToolBorrowReturnRecordDTO dto);
	
	/**
	 * 
	 * @description  查询时间点之后盘点的工器具编号
	 * @param masterCreateTime
	 * @return
	 * @auther 韩兵
	 * @Date 2021年3月3日
	 * @return List<String>
	 */
	List<String> selectToolAfterStartInwarehouse(@Param("masterCreateTime") String masterCreateTime);
}
